<%--
  Created by IntelliJ IDEA.
  User: user
  Date: 2025/3/11
  Time: 11:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--讲解jsp的动作元素：useBean--%>
<jsp:useBean id="student_01" class="com.candy.bean.Stduent"></jsp:useBean>
<%--像javabean对象的属性进行赋值操作--%>
<jsp:setProperty name="student_01" property="stuName" value="zhangsan"></jsp:setProperty>
<%--获取javabean对象对应属性的属性值，其本质是调用bean对象的set与get方法--%>
<jsp:getProperty name="student_01" property="stuName"/>
</body>
</html>
